package com.jobsleaf.filter.subnetwork.tree;

import java.util.ArrayList;
import java.util.List;

import com.jobsleaf.tree.domain.Gsm;
import com.jobsleaf.tree.domain.Lac;
import com.jobsleaf.tree.domain.Rnc;
import com.jobsleaf.tree.domain.Subnetwork;
import com.jobsleaf.tree.domain.Utran;

public class SubnetworkUtility {

	private static List<Subnetwork> mParentList = new ArrayList<Subnetwork>(); 
	public static List<Object> getInput() 
	{
		List <Object>input = new ArrayList<Object>();
		
		Subnetwork sn1 = new Subnetwork();
		Subnetwork sn2 = new Subnetwork();
		
		Gsm gsm2 = new Gsm(sn2);
		Gsm gsm = new Gsm(sn1);
		Lac lac = new Lac(gsm);
		Lac lac2 = new Lac(gsm2);
		Lac lac1 = new Lac(gsm);
		Utran utran = new Utran(sn1);
		Rnc rn = new Rnc(utran);
		mParentList.add(sn1);
		mParentList.add(sn2);
		
		sn1.setName("Subnetwork_1");
		gsm.setName("Subnetwork_1.Gsm");
		lac.setName("Subnetwork_1.Lac");
		lac1.setName("Subnetwork_1.Lac2");;
		utran.setName("Subnetwork_1.Utran");
		rn.setName("Subnetwork_1.Rnc");
		
		gsm.addLAC(lac);
		gsm.addLAC(lac1);
		utran.addRNC(rn);;
		sn1.addGsm(gsm);
		sn1.addUtran(utran);
		sn2.setName("Subnetwork_2");
		gsm2.setName("Subnetwork_2.Gsm");
		lac2.setName("Subnetwork_2.Lac");
		gsm2.addLAC(lac2);
		sn2.addGsm(gsm2);
		input.add(sn1);
		input.add(sn2);
		return input;
	}
	public static List<Subnetwork> getParentList()
	{
		return mParentList;
	}
}
